package com.bit.cfdi.web.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.bit.cfdi.web.domain.Contacto;
import com.bit.cfdi.web.domain.Email;

public interface EmailDAO {

	public void save(final Email email) throws DataAccessException;

	public Email getById(final Long id) throws DataAccessException;

	public List<Email> getAll() throws DataAccessException;
	
	public List<Email> getFromContacto(final Contacto contacto) 
			throws DataAccessException;
	
	public void deleteFromContacto(final Contacto contacto) 
			throws DataAccessException;
	
}